using System;
using System.Collections.Generic;

namespace Acme.BookStore.FormWhxDto.StorehouseDto
{
    public class BatchDeleteResultDto
    {
        /// <summary>
        /// 删除成功的仓库ID列表
        /// </summary>
        public List<Guid> SuccessIds { get; set; }

        /// <summary>
        /// 删除失败的仓库信息
        /// </summary>
        public List<FailedItem> FailedItems { get; set; }

        /// <summary>
        /// 总共尝试删除的数量
        /// </summary>
        public int TotalCount { get; set; }

        /// <summary>
        /// 成功删除的数量
        /// </summary>
        public int SuccessCount { get; set; }

        /// <summary>
        /// 删除失败的数量
        /// </summary>
        public int FailedCount { get; set; }

        public BatchDeleteResultDto()
        {
            SuccessIds = new List<Guid>();
            FailedItems = new List<FailedItem>();
        }

        public class FailedItem
        {
            /// <summary>
            /// 仓库ID
            /// </summary>
            public Guid Id { get; set; }

            /// <summary>
            /// 仓库编码
            /// </summary>
            public string WarehouseCode { get; set; }

            /// <summary>
            /// 失败原因
            /// </summary>
            public string Reason { get; set; }
        }
    }
} 